/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fbv.tcc.utils;

import fbv.tcc.chart.GraficoRadiacao;
import fbv.tcc.classes.PontoRadiacao;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;

/**
 *
 * @author Casa
 */
public class Utils {

    public final static String xls = "xls";
    public final static String xlsx = "xlsx";
    /*
     * Get the extension of a file.
     */

    public static String getExtension(File f) {
        String ext = null;
        String s = f.getName();
        int i = s.lastIndexOf('.');

        if (i > 0 && i < s.length() - 1) {
            ext = s.substring(i + 1).toLowerCase();
        }
        return ext;
    }

    public ArrayList<Double> hora() {
        ArrayList<Double> horaList = new ArrayList<Double>();
        for (double h = 0; h <= 23; h++) {
            //System.out.println(i/60);
            for (double i = 0; i <= 60; i++) {
                //System.out.println(h+(i/60));
                horaList.add(h + (i / 60));
            }

        }
        return horaList;

    }
    
}
